home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
os2
/
clndrlib.zip
/
read.me
< prev
Wrap
Text File
|
1997-08-11
|
881b
|
33 lines
calendar.lib is a cpp library to get a date value. It presents a
calendar to the user and allows for a selection of any date from
1756 on.
It is easy to use (4 lines of code) as the demo (caldemo.exe/cpp) shows.
Just #include "calendar.h" in your source and include calendar.lib
in your project.
The snippet below from caldemo.cpp demonstrates usage.
............
char tmp[60];
Date d;
Calendar *cal;
//Stop multipule instance
WinEnableControl(hwnd, BTN_CALENDAR, FALSE);
cal = new Calendar;
cal->show();
cal->getDate(&d);
sprintf(tmp, "%s, %i %s %i", d.dow, d.day, d.mnth, d.year);
WinSetWindowText(WinWindowFromID(hwnd, EF_DATE), tmp);
delete cal;
WinEnableControl(hwnd, BTN_CALENDAR, TRUE);
.............
Source code (so you can remove nag screen) available for $15 Australian
pfaulks@zip.com.au